<template>
  <div class="home-container">
    <div class="welcome-section">
      <h1>Welcome to Beauty E-Commerce</h1>
      <p>The Best Choice for Cross-border Beauty Shopping</p>
      
      <div class="action-buttons">
        <el-button type="primary" size="large" @click="$router.push('/login')">User Login</el-button>
        <el-button type="success" size="large" @click="$router.push('/register')">User Register</el-button>
      </div>
      
      <div class="merchant-section">
        <h3>Merchant Area</h3>
        <div class="merchant-buttons">
          <el-button type="warning" @click="$router.push('/merchant/login')">Merchant Login</el-button>
          <el-button @click="$router.push('/merchant/register')">Merchant Register</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
// 无需其他逻辑
</script>

<style scoped>
.home-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 20px;
}

.welcome-section {
  text-align: center;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

h1 {
  color: #409EFF;
  margin-bottom: 20px;
}

p {
  color: #606266;
  font-size: 18px;
  margin-bottom: 30px;
}

.action-buttons {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.merchant-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ebeef5;
}

h3 {
  color: #67C23A;
  margin-bottom: 20px;
}

.merchant-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
</style> 